-
Notifications
You must be signed in to change notification settings - Fork 7.1k
replace requests with urllib #4973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💊 CI failures summary and remediationsAs of commit 8ae1c48 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pmeier , LGTM when green
Reviewed By: NicolasHug Differential Revision: D32694312 fbshipit-source-id: b2cbebbf578e91a26b59491cbd3d4b5392152c0c
While working on #5035, I realized we unfortunately sometimes need the confirm token. This happens if GDrive is unable to perform a virus scan and is asking the user for confirmation to proceed. This regularly happens for large files. Thus, I would follow my suggestion in the top comment to revert this PR and afterwards make |
@pmeier There were a couple of PRs that removed the functionality (including cleaning up a private method), so clicking the revert button here wont do the trick. You might need to do a bit more to undo the change. Concerning adding |
This reverts commit 8d25de7.
This reverts commit 8d25de7.
* Revert "[FBcode->GH] remove unused requests functionality (#5014)" This reverts commit 33123be. * Revert "replace requests with urllib (#4973)" This reverts commit 8d25de7. * add requests as hard dependency * install library stubs in CI * fix syntax * add requests to conda dependencies * fix mypy CI
…tead (#5047) Summary: * Revert "[FBcode->GH] remove unused requests functionality (#5014)" This reverts commit 33123be. * Revert "replace requests with urllib (#4973)" This reverts commit 8d25de7. * add requests as hard dependency * install library stubs in CI * fix syntax * add requests to conda dependencies * fix mypy CI Reviewed By: NicolasHug Differential Revision: D32950928 fbshipit-source-id: de0ed9a1c7cb5ca6e1b2a30db76e3ccc2008d25c
Closes #4941. With this we lose the ability to send the confirm token, since
urllib
has no support for it. I've checked all of our GDrive resources in the datasets and none required it. TBH, I don't think we ever had a case where it was needed.In case the confirm token is indeed needed in the future, I suggest we hard depend on
requests
, sinceurllib
is only meant for very simple uses cases.cc @pmeier